/**
 * 
 */
package com.gragra.nounIdentification;
import com.gragra.frameStatistics.StatisticsGenerator;
/**
 * this extends the scoring for both words and frames by adding a saling factor equal to the logarithm of the
 * frequency for both
 * @author Christoph Teichmann
 * created Mar 26, 2013 11:42:57 AM
 * @version 0.1
 */
public class TypesPerTokenLogWeighted extends TypesPerTokenScorer
{
	/* (non-Javadoc)
	 * @see com.gragra.nounIdentification.TypesPerTokenScorer#additonalScoreWord(int, com.gragra.frameStatistics.StatisticsGenerator)
	 */
	@Override
	protected double additonalScoreWord(int word,
			StatisticsGenerator statisticsGenerator)
	{return Math.log(statisticsGenerator.getWordCount(word)+1);}
	/* (non-Javadoc)
	 * @see com.gragra.nounIdentification.TypesPerTokenScorer#additionalScoreFrame(int, com.gragra.frameStatistics.StatisticsGenerator)
	 */
	@Override
	protected double additionalScoreFrame(int frame, StatisticsGenerator sg)
	{return Math.log(sg.getFrameFrequency(frame)+1);}
}